﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhotoWallEdit.aspx.cs" Inherits="ZHDJ.BranchCenter.Module.PhotoWall.PhotoWallEdit" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <style>
        .attachment-table {
            border: 1px solid #99AAC6;
        }

        .attachment-title {
            background: #ADD2F7;
            height: 22px;
            line-height: 22px;
            color: White;
        }

        .attachment-tr td {
            height: 22px;
            line-height: 22px;
            border-bottom: 1px dotted #CCCCCC;
        }

        .button-attachment-delete {
            background: url("../../../../Resource/themes/default/images/Buttons/button-attachment-delete.gif") no-repeat;
            height: 16px;
            width: 16px;
            border: 0px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" style="background-color: #0000FF">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server" Layout="Table" BoxConfigAlign="Stretch">
            <Items>
                <f:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server"
                    BodyPadding="10px" Title="SimpleForm">
                    <Items>
                        <f:HiddenField ID="hdPhotoWallID" runat="server"></f:HiddenField>
                        <f:TextBox ID="txtTitle" Required="true" ShowRedStar="true" Label="图片库" runat="server" LabelAlign="Right">
                        </f:TextBox>
                        <f:DropDownList ID="ddlThematic" Label="所属专题" runat="server" LabelAlign="Right">
                        </f:DropDownList>
                        <f:DropDownList ID="ddlCategory" Required="true" ShowRedStar="true" Label="图片类型" runat="server" LabelAlign="Right">
                        </f:DropDownList>
                        <f:FileUpload runat="server" ID="fileImage" EmptyText="请选择一张图片" Label="附件" LabelAlign="Right" AcceptFileTypes="image/*" AutoPostBack="true" OnFileSelected="fileImage_FileSelected"></f:FileUpload>
                        <f:CheckBox ID="cbStatus" runat="server" Label="是否发布" LabelAlign="Right" Text="发布<span style='color:Red;text-decoration:none;'>（确定发布请勾选此框）</span>"></f:CheckBox>
                        <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                            EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="true" AutoScroll="true" Height="200px"
                            SortField="FileID" SortDirection="DESC" AllowPaging="true" ShowPagingMessage="false"
                            IsDatabasePaging="true" OnRowCommand="Grid1_RowCommand">
                            <Columns>
                                <f:BoundField DataField="Title" ExpandUnusedSpace="true" HeaderText="图片库" />
                                <f:TemplateField HeaderText="描述" Width="400px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtDesc" runat="server" Width="390px" Text='<%# Eval("Describe") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </f:TemplateField>
                                <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" HeaderText="操作" Icon="Delete" ToolTip="删除" ConfirmText="确定删除此记录？"
                                    ConfirmTarget="Top" CommandName="Delete" Width="50px" />
                            </Columns>
                        </f:Grid>
                    </Items>
                </f:SimpleForm>
            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭" DisableControlBeforePostBack="True">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>
    </form>
</body>
</html>
